package com.telecomyt.jwportal.utils;

/**
 * @author created by chengDa
 * @time 2020/9/16  17:15
 * @description
 */
public class StringUtils {
    /**
     * 手机号用****号隐藏中间数字
     *
     * @param phone
     * @return
     */
    public static String settingPhone(String phone) {
        String phone_s = phone.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
        return phone_s;
    }
}
